package com.ljc.api;

import com.ljc.entity.UserMoment;
import com.ljc.interfaces.UserMomentApi;
import com.ljc.mapper.UserMomentsMapper;
import org.apache.dubbo.config.annotation.DubboService;

import javax.annotation.Resource;

@DubboService
public class UserMomentApiImpl implements UserMomentApi {
    @Resource
    private UserMomentsMapper userMomentsMapper;

    /**
     * 新建用户动态
     */
    @Override
    public UserMoment addUserMoments(UserMoment userMoment) {
        userMomentsMapper.addUserMoments(userMoment);
        return userMoment;
    }
}
